home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
challenge
/
12.09-Sep96
/
Testcode96.09R1.sit.hqx
/
Testcode96.09R1
/
3 HelloWorld
/
HelloWorld.java
< prev
next >
Wrap
Text File
|
1996-08-14
|
367b
|
19 lines
import java.applet.Applet;
public class HelloWorld extends Applet
{
public String myHello()
{
return ("Hello,"+" "+"World!");
// if I understand the VM spec correctly, this should push a reference to the string Hello, World! on the caller's stack
}
public void start()
{
String s;
s = myHello();
System.out.println( "Correct result is " + s );
}
}